package demo;




// https://www.baeldung.com/graal-java-jit-compiler

import demo.marshal.Marshal;
import demo.timeseries.ForecastDemo;
import demo.useless.Useless;

/**
 * -XX:+UseJVMCICompiler -Dgraal.Dump=:1
 */
public class Main {

    private static void doMultipleTimes(Timer.Func f) {
        Timer.runWithTimer(f, 10);
        Timer.runWithTimer(f, 10);
        Timer.runWithTimer(f, 20);
        Timer.runWithTimer(f, 30);
        Timer.runWithTimer(f, 40);
        Timer.runWithTimer(f, 50);
        Timer.runWithTimer(f, 100);
        Timer.runWithTimer(f, 200);
    }

    public static void main(String[] args) {
        doMultipleTimes(ForecastDemo::simulate);
    }
}